package com.ssy.lingxi.search.service;

import com.ssy.lingxi.common.model.dto.UserLoginCacheDTO;
import com.ssy.lingxi.common.model.vo.PageVO;
import com.ssy.lingxi.search.entity.OftenSelect;
import org.springframework.data.domain.Page;

/**
 * 商城管理类
 * @author jw.chen
 * @version 2.0.0
 * @date 2020/9/2
 */
public interface IOftenSelectService {
    /**
     * 查询常用筛选--商品能力
     * @param pageVO
     * @return Wrapper<Page<OftenSelect>>
     */
    Page<OftenSelect> getOftenSelectList(UserLoginCacheDTO sysUser, PageVO pageVO);

    /**
     * 查询常用筛选
     * @param id
     * @return Wrapper<OftenSelect>
     */
    OftenSelect getOftenSelect(Long id);

    /**
     * 添加/修改常用筛选
     * @param oftenSelect
     * @return
     */
    Long saveOrUpdateOftenSelect(UserLoginCacheDTO sysUser, OftenSelect oftenSelect);

    /**
     * 删除常用筛选
     * @param id
     * @return
     */
    String deleteOftenSelect(Long id);
}
